Address
fun Address(countryCode: String, streetAddress: String? = null, city: String? = null, state: String? = null, zipCode: String? = null, dependentLocality: String? = null): Address
fun Address(countryCode: String, streetAddress: String? = null, city: String? = null, state: String? = null, zipCode: String? = null, dependentLocality: String? = null): Address
Creates a new instance of Address with the given parameters.
Since
8.0.0
Parameters
country Code
The 2-letter country code.
street Address
The full street address.
city
The name of the city.
state
The name of the state.
zip Code
The zip code.
dependent Locality
A subdivision of a city, e.g., an inner-city district or a suburb.
Throws
if the length of countryCode is not two.